package com.wy2.springcloud.sample.rabbitmq.mqbinder;

import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class RabbitMQClient {

	@Autowired
	private RabbitTemplate rabbitTemplate;
	
	public void send(String message) {
		rabbitTemplate.convertAndSend("ordertopic",message);
	}
}
